#ifndef CVTABWIDGET_H
#define CVTABWIDGET_H

#include <QTabWidget>
#include <QTabBar>

#include "model/blog.h"
#include "model/topic.h"
#include "widgets/clickablelabel.h"
class CVTabWidget : public QTabWidget
{
    Q_OBJECT
public:
    explicit CVTabWidget(QWidget *parent = 0);
    
signals:
    
public slots:
    void addBlogTab(Blog *blog, const QString &msg);
    void addTopicTab(Topic *topic, const QString &msg);
private slots:
    void closeTab(ClickableLabel *label);
private:
    void addTabCloseButton();
};

#endif // CVTABWIDGET_H
